package com.base.data.elasticsearch.util;

import com.base.data.elasticsearch.core.BaseRestHighLevelClient;
import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;

@FunctionalInterface
public interface ClientCallback<T> {
    T doWithClient(BaseRestHighLevelClient client) throws IOException;

}
